<?php if (!defined('THINK_PATH')) exit();?><h2 class="contentTitle">表单验证</h2>


<div class="pageContent">
	
	<!-- <form method="post" action="<?php echo U('User/addAction');?>?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)"> -->
	<form method="post" action="<?php echo U('Nav/addAction');?>?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent nowrap" layoutH="97">

			<dl>
				<dt>导航名称：</dt>
				<dd>
					<input type="text" name="name" maxlength="20" class="required" />
					<span class="info">请输入用户名</span>
				</dd>
			</dl>
			<dl>
				<dt>URL：</dt>
				<dd>
					<input type="text" name="url"  />
					<span class="info">请输url地址</span>
				</dd>
			</dl>
			<dl>
				<dt>排序：</dt>
				<dd>
					<input type="text" name="order"  />
				</dd>
			</dl>
			<!-- <dl>
				<dt>必填+邮箱：</dt>
				<dd>
					<input type="text" name="email" class="required email" alt="请输入您的电子邮件"/>
					<span class="info">请输入邮箱</span>
				</dd>
			</dl>
			<dl>
				<dt>电话：</dt>
				<dd>
					<input type="text" name="phone" class="phone" alt="请输入您的电话"/>
					<span class="info">class="phone"</span>
				</dd>
			</dl>
			<dl>
				<dt>密码：</dt>
				<dd>
					<input id="w_validation_pwd" type="password" name="password" class="required alphanumeric" minlength="6" maxlength="20" alt="字母、数字、下划线 6-20位"/>
					<span class="info">class="required alphanumeric" minlength="6" maxlength="20"</span>
				</dd>
			</dl>
			<dl>
				<dt>确认密码：</dt>
				<dd>
					<input type="password" name="repassword" class="required" equalto="#w_validation_pwd"/>
					<span class="info">class="required" equalto="#xxxId"</span>
				</dd>
			</dl> -->
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>